<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>最近收益</title>
</head>
<body>

{% include "header.html" %}

<div id="A3">
<table>
    <tr>
        <td>
            <table border="0" cellspacing="5" cellpadding="0" valign="top">
                <tr>
                    <td>
                        <table class="table15_6">
                            <tr>
                                <td><b>编码</b></td>
                                <td><b>名称</b></td>
                                <td><b>买入时间</b></td>
                                <td><b>买入份额</b></td>
                                <td><b>费用</b></td>
                                <td><b>收益</b></td>
                                <td><b>收益率</b></td>
                            </tr>
                            {% for fund in funds %}
                            {% if fund.income > 0 %}
                            <tr style="color:red">
                                {% else %}
                            {% endif %}
                                <td>{{fund.code}}</td>
                                <td>{{fund.name}}</td>
                                <td>{{ fund.date|date:"Y-m-d" }}</td>
                                <td>{{fund.units}}</td>
                                <td>{{fund.cost}}</td>
                                <td>{{fund.income}}</td>
                                <td>{{fund.incomeRate}}%</td>
                            </tr>
                            {% endfor %}
                        </table>
                    </td>

                </tr>
            </table>
        </td>
    </tr>
</table>
</div>

<style type="text/css">
.table15_6 table {
	width:100%;
	margin:15px 0;
	border:0;
}
.table15_6 th {
	font-weight:bold;
	background-color:#d3dae6;
	color:#202053
}
.table15_6,.table15_6 th,.table15_6 td {
	font-size:0.95em;
	text-align:center;
	padding:4px;
	border-collapse:collapse;
}
.table15_6 th {
	border: 1px solid #d3dae6;
	border-width:1px
}
.table15_6 td {
	border: 1px solid #d3dae6;
	border-width:1px
}
.table15_6 tr {
	border: 1px solid #ffffff;
}
.table15_6 tr:nth-child(odd){
	background-color:#f7f7f7;
}
.table15_6 tr:nth-child(even){
	background-color:#ffffff;
}
</style>

</body>
</html>
